package com.shtel.bss.saas.tenant.entity;

import java.util.Date;
import com.shtel.bss.saas.core.data.common.entiry.IAbsBaseEntity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import com.shtel.bss.saas.core.base.spring.ApplicationContextUtil;
import com.shtel.bss.saas.tenant.entity.repository.ISysGlobalDictGroupRepository;

/**
 * 系统字典组表
 * @author xiezhiwei 2020-02-05 21:09
 */
@Table(name = "SYS_GLOBAL_DICT_GROUP")
public class SysGlobalDictGroup extends IAbsBaseEntity<Long> {
	
    /**
     * 创建时间
     * 
     */
	@Column(name = "CREATE_TIME")
	private Date createTime;
    /**
     * 创建人
     * 
     */
	@Column(name = "CREATE_USER_ID")
	private Long createUserId;
    /**
     * 字典编码
     * 
     */
	@Column(name = "DICT_GROUP_CODE")
	private String dictGroupCode;
    /**
     * 字典组编号
     * 
     */
	@Id
	@Column(name = "DICT_GROUP_ID")
	private Long dictGroupId;
    /**
     * 描述
     * 
     */
	@Column(name = "GROUP_DESC")
	private String groupDesc;
    /**
     * 字典组中文名称
     * 
     */
	@Column(name = "GROUP_NAME")
	private String groupName;
    /**
     * 字典组类型
     * 
     */
	@Column(name = "GROUP_TYPE")
	private String groupType;
    /**
     * 删除标识(1已删除 0未删除)
     * 
     */
	@Column(name = "IS_DELETE")
	private byte isDelete;
    /**
     * 是否不可修改(1:不可修改;0:可修改)
     * 
     */
	@Column(name = "IS_FINAL")
	private byte isFinal;
    /**
     * 修改时间
     * 
     */
	@Column(name = "MODIFY_TIME")
	private Date modifyTime;
    /**
     * 修改人
     * 
     */
	@Column(name = "MODIFY_USER_ID")
	private Long modifyUserId;

	public static ISysGlobalDictGroupRepository repository() {
		return (ISysGlobalDictGroupRepository) ApplicationContextUtil.getBean("sysGlobalDictGroupRepository");
	}
	
    public void setCreateTime(Date createTime) {
    	this.createTime = createTime;
    }
    
    public Date getCreateTime() {
	   return createTime;
    }
    
    public void setCreateUserId(Long createUserId) {
    	this.createUserId = createUserId;
    }
    
    public Long getCreateUserId() {
	   return createUserId;
    }
    
    public void setDictGroupCode(String dictGroupCode) {
    	this.dictGroupCode = dictGroupCode;
    }
    
    public String getDictGroupCode() {
	   return dictGroupCode;
    }
    
    public void setDictGroupId(Long dictGroupId) {
    	this.dictGroupId = dictGroupId;
    }
    
    public Long getDictGroupId() {
	   return dictGroupId;
    }
    
    public void setGroupDesc(String groupDesc) {
    	this.groupDesc = groupDesc;
    }
    
    public String getGroupDesc() {
	   return groupDesc;
    }
    
    public void setGroupName(String groupName) {
    	this.groupName = groupName;
    }
    
    public String getGroupName() {
	   return groupName;
    }
    
    public void setGroupType(String groupType) {
    	this.groupType = groupType;
    }
    
    public String getGroupType() {
	   return groupType;
    }
    
    public void setIsDelete(byte isDelete) {
    	this.isDelete = isDelete;
    }
    
    public byte getIsDelete() {
	   return isDelete;
    }
    
    public void setIsFinal(byte isFinal) {
    	this.isFinal = isFinal;
    }
    
    public byte getIsFinal() {
	   return isFinal;
    }
    
    public void setModifyTime(Date modifyTime) {
    	this.modifyTime = modifyTime;
    }
    
    public Date getModifyTime() {
	   return modifyTime;
    }
    
    public void setModifyUserId(Long modifyUserId) {
    	this.modifyUserId = modifyUserId;
    }
    
    public Long getModifyUserId() {
	   return modifyUserId;
    }
    
	@Override
	public Long getId() {
		return getDictGroupId();
	}

	@Override
	public void setId(Long id) {
		setDictGroupId(id);
	}
}